tabOver = function() {
		var submenu = document.getElementById('tabSubmenu').document
				.getElementsByTagName('li');
		for ( var i = 0; i < submenu.length; i++) {
			submenu[i].onmouseover = function() {
				this.className += ' over';
			}
			submenu[i].onmouseout = function() {
				this.className = this.className.replace(new RegExp(' over\\b'),
						'');
			}
		}
	}

	if (window.attachEvent)
		window.attachEvent('onload', tabOver);

function search(){
		var id=join.shop_id.value;
		var pswd=join.shop_pswd.value;
		var pswd2=join.shop_pswd2.value;
		var name=join.shop_name.value;
		var phon01=join.shop_phon01.value;
		var phon02=join.shop_phon02.value;
		var phon03=join.shop_phon03.value;
		var bir_y=join.shop_bir_y.value;
		var bir_m=join.shop_bir_m.value;
		var bir_d=join.shop_bir_d.value;
		
		var add01=join.shop_add01.value;
		var add02=join.shop_add02.value;
		var mail01=join.shop_mail01.value;
		var mail02=join.shop_mail02.value;
		
		
		if(id==""){
			alert("아이디를 입력하세요");
			join.shop_id.value = "";
			join.shop_id.focus();		
			return false;
		}
		if(pswd==""){
			alert("패스워드를 입력하세요");
			join.shop_pswd.value = "";
			join.shop_pswd.focus();		
			return false;
		}
		if(pswd2==""){
			alert("패스워드를 입력하세요");
			join.shop_pswd2.value = "";
			join.shop_pswd2.focus();		
			return false;
		}
		if(pswd!=pswd2){
			alert("비밀번호가 일치하지 않습니다.");
			join.shop_pswd.value = "";
			join.shop_pswd2.value = "";
			join.shop_pswd.focus();
			return false;
		}
		
		if(name==""){
			alert("이름을 입력하세요");
			join.shop_name.value = "";
			join.shop_name.focus();
			return false;
		}
		if(phon01==""){
			alert("휴대전화번호를 입력하세요");
			join.shop_phon01.value = "";
			join.shop_phon01.focus();
			return false;
		}
		if(phon02==""){
			alert("휴대전화번호를 입력하세요");
			join.shop_phon02.value = "";
			join.shop_phon02.focus();
			return false;
		}
		if(phon03==""){
			alert("휴대전화번호를 입력하세요");
			join.shop_phon03.value = "";
			join.shop_phon03.focus();
			return false;
		}
			if(bir_y==""){
				alert("날짜를 입력하세요");
				join.shop_bir_y.value = "";
				join.shop_bir_y.focus();
				return false;
		}
			
			if(bir_m==""){
				alert("날짜를 입력하세요");
				join.shop_bir_m.value = "";
				join.shop_bir_m.focus();
				return false;
		}
			if(bir_d==""){
				alert("날짜를 입력하세요");
				join.shop_bir_d.value = "";
				join.shop_bir_d.focus();
				return false;
		}
			if(add01==""){
				alert("주소를 입력하세요");
				join.shop_add01.value = "";
				join.shop_add01.focus();
				return false;
			}
		   if(add02==""){
			alert("상세주소를 입력하세요");
			join.shop_add02.value = "";
			join.shop_add02.focus();
			return false;
		}
		
		
		if(mail01==""){
			alert("이메일 주소를 입력하세요");
			join.shop_mail01.value = "";
			join.shop_mail01.focus();
			return false;
		}
		if(mail02==""){
			alert("이메일 주소를 입력하세요");
			join.shop_mail02.value = "";
			join.shop_mail02.focus();
			return false;
		}
		
	}
	function zip(){
		var url="zipcode.jsp"
		open(url,"confirm","toolbar=no,location=0,"
				+"status=no,memubar=no,"
				+"scrollybars=yes,resizable=no,"
				+"width=450,height=600");
	}

	function idcheck(){
		var id=join.shop_id.value;
		
		var url="idcheck?shop_id="+id;
		open(url,"confirm","toolbar=no,location=0,"
				+"status=no,memubar=no,"
				+"scrollybars=yes,resizable=no,"
				+"width=450,height=240");

	}
	
	